Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement function that translates QUARK 1 config to QUARK 2 config f… #87

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

philross
Copy link
Member

@philross philross commented Nov 8, 2023

This PR adds the feature to automatically translate legacy configs from QUARK 1 to a QUARK 2 configs as requested by @jusschwitalla .

For legacy configs with a "Direct" mapping we assume that this "Direct" mapping is not existing anymore in QUARK 2.0 (for example for TSP GreedySolver.

Example QUARK 1 config:


application:
  config:
    nodes:
    - 3
  name: TSP
mapping:
  Direct:
    config: {}
    solver:
    - config: {}
      device:
      - config: {}
        name: Local
      name: GreedyClassicalTSP
  Ising:
    config:
      lagrange_factor:
      - 0.75
      mapping:
      - ocean
    solver:
    - config:
        coeff_scale:
        - 0.01
        iterations:
        - 1
        layers:
        - 1
        shots:
        - 10
        stepsize:
        - 0.0001
      device:
      - config: {}
        name: default.qubit
      name: PennylaneQAOA
  QUBO:
    config:
      lagrange_factor:
      - 0.75
    solver:
    - config:
        number_of_reads:
        - 100
      device:
      - config: {}
        name: Simulated Annealer
      name: Annealer
repetitions: 1

@philross philross added the enhancement New feature or request label Nov 8, 2023
@philross philross force-pushed the translateLegacyConfigs branch from 399e129 to 7c2d4a8 Compare November 9, 2023 06:38
@philross philross force-pushed the translateLegacyConfigs branch from 7c2d4a8 to cfb7296 Compare November 13, 2023 09:41
@Marvmann Marvmann merged commit e36c655 into dev Nov 13, 2023
2 checks passed
@Marvmann Marvmann deleted the translateLegacyConfigs branch November 13, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants